				<div class="page-toolbar">
						<div class="btn-group pull-right">
							<button type="button" class="btn btn-fit-height grey-salt dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">
							Actions <i class="fa fa-angle-down"></i>
							</button>
							<?php echo form_open('admin/things_places/search_by')?>
								<select name="search_by" id="things_place" class="select2_category form-control" data-placeholder="Choose a Category" tabindex="1">
									<option value="">select</option>
									<?php foreach($thingsplaces_fileds as $thingsplaces_k => $thingsplaces_v):?>
									<?php if($thingsplaces_k !== 'created_date' && $thingsplaces_k !== 'image' && $thingsplaces_k !== 'status'){?>
									<?php if($search_by == $thingsplaces_k):?>
										<option  selected="selected" value="<?php echo $thingsplaces_k;?>"><?php echo $thingsplaces_v;?></option>
									<?php else:?>
										<option value="<?php echo $thingsplaces_k;?>"><?php echo $thingsplaces_v;?></option>
									<?php endif; } ?>
									<?php endforeach;?>
								</select><?php echo form_error('search_by');?>
								<input type="text" value="<?php if($search_by !== 'article_name'):echo $search_by_value; else: echo ''; endif;?>" name="things_search" id="things_search" class="form-control" placeholder="search"/>
								<select name="article_list" id="article_list" class="select2_category form-control">
									<option value="">Select</option>
									<?php foreach($article_list->result as $list):?>
									<?php if($search_by == 'article_name' && $search_by_value == $list->article_name):?>
										<option selected="selected" value="<?php echo $list->article_name;?>"><?php echo $list->article_name;?></option>
									<?php else: ?>
										<option value="<?php echo $list->article_name;?>"><?php echo $list->article_name;?></option>
									<?php endif; endforeach;?>
								</select>
									<input type="submit" class="btn blue" value="Search"/>
								<?php echo form_close();?>				
						</div>
					</div>
				</div>
		
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-edit"></i>Editable Table
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="#portlet-config" data-toggle="modal" class="config">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="remove">
									</a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
											<div class="btn-group">
												<a href="<?php echo base_url().'index.php/admin/things_places/add_things_places';?>"><button id="sample_editable_1_new" class="btn green">
												Add New <i class="fa fa-plus"></i>
												</button></a>
											</div>
										</div>
										<?php if($error == 1){
											echo 'No Records Found<br>';
											echo anchor('admin/things_places/index','Back');
										}else{ ?>
										<div class="col-md-6">
											<div class="btn-group pull-right">
												<button class="btn dropdown-toggle" data-toggle="dropdown">Tools <i class="fa fa-angle-down"></i>
												</button>
												<ul class="dropdown-menu pull-right">
													<li>
														<a href="javascript:;">
														Print </a>
													</li>
													<li>
														<a href="javascript:;">
														Save as PDF </a>
													</li>
													<li>
														<a href="javascript:;">
														Export to Excel </a>
													</li>
												</ul>
											</div>
										</div>
									</div>
								</div>
								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
								<?php //echo '<pre>';print_r($thingsplaces_fileds);exit;?>
								<?php foreach($thingsplaces_fileds as $thingsplaces_k => $thingsplaces_v):?>
									<th>
										<?php 
										if($thingsplaces_k == 'image'){
											echo $thingsplaces_v;
										}else{echo anchor('admin/things_places/index/'.$query_id.'/'.$thingsplaces_k.'/'.(($sort_order == 'asc' && $order_by == $thingsplaces_k)?'desc':'asc'),$thingsplaces_v);
										}?>
										
									</th>
								<?php endforeach;?>
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
								</tr>
								</thead>
								<tbody>
								<?php echo 'Total Records: '.$thingsplaces_all_thingstodo->total;?>
								<?php //echo '<pre>';print_r($thingsplaces_all_thingstodo);exit;?>
								<?php foreach($thingsplaces_all_thingstodo->info as $things_places):?>
								<tr>
									<td>
										 <?php echo $things_places->things_place;?>
									</td>
									<td>
										 <?php echo $things_places->things_location;?>
									</td>
									<td>
										 <?php echo $things_places->article_name;?>
									</td>
									<td>
										 <?php echo anchor('','View');?>
									</td>
									<td>
										 <?php if($things_places->status == 1){?>
										 <i class="fa fa-check"></i>
										 <?php }else{ ?>
										 <i class="fa fa-times"></i>
										  <?php } ?>
									</td>
									<td>
										 <?php echo $things_places->created_date;?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/things_places/edit_things_places/'.$things_places->things_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/things_places/delete_things_places/'.$things_places->things_id.'/'.$things_places->status;?>">
										<?php if($things_places->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
								</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>
										<?php } ?>